﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ClubLibro.Models;

namespace ClubLibro.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var datacontent = new LibrosDataContext();

            var Libros = from m in datacontent.Libros select m;

            return View(Libros);


            /*ViewData["Message"] = "ASP.NET MVC";

            return View();*/
        }
        /*
        public ActionResult About()
        {
            return View();
        }*/
    }
}
